package com.mxpio.erp.common.equipment.entity;

import com.mxpioframework.jpa.annotation.Generator;
import com.mxpioframework.security.annotation.Dict;
import com.mxpioframework.security.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.*;

/**
 * @Description: 点检计划明细
 * @Author: wxy
 * @Date:   2021-09-16
 * @Version: V1.0
 */
@Data
@EqualsAndHashCode(callSuper=false)
@Entity
@Table(name = "MB_ERP_EQUIPMENT_CHECK_PLAN_DETAIL")
@Schema(description="点巡检计划明细")
public class EquipmentCheckPlanDetail extends BaseEntity {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@Id
	@Generator
	@Column(name = "ID_", updatable = false)
	@Schema(description = "ID")
	private String id;

	/**点检计划ID*/
	@Column(name = "PLAN_ID_")
	@Schema(description = "点检计划ID")
	private String planId;
	/**点检标准明细id*/
	@Column(name = "DETAIL_ID_")
	@Schema(description = "点检标准明细id")
	private String detailId;
	/**序号*/
	@Column(name = "NUM_")
	@Schema(description = "序号")
	private Integer num;
	/**内容*/
	@Column(name = "CONTENT_")
	@Schema(description = "内容")
	private String content;
	/**部位描述*/
	@Column(name = "PLACE_DESCRIBE_")
	@Schema(description = "部位描述")
	private String placeDescribe;
	/**方法*/
	@Column(name = "METHOD_")
	@Schema(description = "方法")
	private String method;
	/**目标*/
	@Column(name = "TARGET_")
	@Schema(description = "目标")
	private String target;
	/**是否记录属性*/
    @Dict(dicCode = "ERP_COMMON_YESNO")
	@Column(name = "IS_RECORD_")
	@Schema(description = "是否记录属性")
	private Integer isRecord;
	/**上限值*/
	@Column(name = "UPPER_LIMIT_")
	@Schema(description = "上限值")
	private Double upperLimit;
	/**下限值*/
	@Column(name = "LOWER_LIMIT_")
	@Schema(description = "下限值")
	private Double lowerLimit;
	/**告警阈值*/
	@Column(name = "WARN_VALUE_")
	@Schema(description = "告警阈值")
	private Double warnValue;
	/**预警阈值*/
	@Column(name = "EARLY_WARN_VALUE_")
	@Schema(description = "预警阈值")
	private Double earlyWarnValue;
	/**属性值单位*/
	@Column(name = "ATTRIBUTE_UNIT_")
	@Schema(description = "属性值单位")
	private String attributeUnit;
	/**估计用时*/
	@Column(name = "EVALUATE_TIME_")
	@Schema(description = "估计用时")
	private Integer evaluateTime;
	/**标准图片*/
	@Column(name = "PIC_")
	@Schema(description = "标准图片")
	private String pic;


	/**所属部门*/
	@Column(name = "SYS_ORG_CODE_")
	@Schema(description = "所属部门")
	private String sysOrgCode;

    /**存在选项*/
    @Dict(dicCode = "ERP_COMMON_YESNO")
	@Column(name = "CHOOSE_ENABLE_")
	@Schema(description = "存在选项")
    private Integer chooseEnable;

    /**内容类型*/

    @Dict(dicCode = "comment_type")
	@Column(name = "CONTENT_TYPE_")
	@Schema(description = "内容类型")
    private String contentType;

    @Transient
    private String paramId;

}
